import type { NextConfig } from "next";
import createMDX from "@next/mdx";
import { i18n } from "./next-i18next.config";

const nextConfig: NextConfig = {
  i18n, // 添加国际化配置
  pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
  /* config options here */
};
const withMDX = createMDX({
  // Add markdown plugins here, as desired
  options: {
    providerImportSource: "@mdx-js/react", // 使用 MDX 提供的 React 支持
  },
  extension: /\.(md|mdx)$/,
});

export default withMDX(nextConfig);
